<template>
	<view class="search" :style="{'background-color': bgColor}">
		<view class="a-i-c" @click="getSearch" >
			<uni-icons type="search" size="25"></uni-icons>
			<view>搜索</view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"my-search",
		props:{
			bgColor:{
				type:String,
				default:'#c00000'
			}
		},
		data() {
			return {
				
			};
		},
		methods:{
			getSearch(){
				uni.navigateTo({
					url:'/pages-supper/search/search'
				});
				this.$emit("click")
			}
		}
	}
</script>

<style lang="scss">
.search{
	// background-color: #CB2D01;
	height: 100rpx;
	display: flex;
	justify-content: center;
	align-items: center;
	.a-i-c{
		height: 70rpx;width: 80%;
		border-radius: 30rpx;
		background-color: white;
		display: flex;
		justify-content: center;
		align-items: center;
	}
}
</style>